<template>
	<div class="public_main">
		<div class="crumbs">
      <el-breadcrumb separator="/">
        <el-breadcrumb-item>{{$t('sidebar.operator')}}</el-breadcrumb-item>
        <el-breadcrumb-item>{{$t('third.no1')}}</el-breadcrumb-item>
        <el-breadcrumb-item>{{$t('third.no1')}}</el-breadcrumb-item>
      </el-breadcrumb>
    </div>

		<!-- 添加流程 -->
		<el-card class="box-card">
			<div slot="header" class="clearfix">
				<span>{{$t('third.no6')}}</span>
			</div>
			<div id="u2" >
        <div class="bluebox"></div>
        <div id="u2_text" class="text ">
          <p><span>{{$t('third.no2')}}</span></p>
        </div>
      </div>
			<div id="u3" class="ax_default box_1">
        <div id="u3_div" class=""></div>
        <div id="u3_text" class="text ">
          <p><span>{{$t('long.no21')}}</span></p>
        </div>
      </div>
			<div id="u5" class="ax_default box_1">
        <div id="u5_div" class=""></div>
        <div id="u5_text" class="text ">
          <p><span>{{$t('long.no22')}}</span></p>
        </div>
      </div>
			<el-form ref="form" :model="form" >
				<el-form-item :label="$t('third.no3')+':'">
					<el-radio-group v-model="form.resource">
						<el-radio :label="1">{{$t('third.no4')}}</el-radio>
						<el-radio :label="0">{{$t('third.no5')}}</el-radio>
					</el-radio-group>
				</el-form-item>
				<el-form-item class="flex flex-justify-center">
					<el-button type="primary" size="small" @click="onSubmit">{{$t('third.no7')}}</el-button>
				</el-form-item>
			</el-form>
		</el-card>
		
		
	</div>
</template>

<script>
export default {
	name: 'ThirdManageList',
  data () {
    return {
			from: '',
			auditConfig: '',
			partnerId: '',
			partnerNo: '',
			partnerName: '',
			auditFlag: false,
			form:{
				resource: 1
			}
    }
  },
  methods: {
		onSubmit(){
			let options = {
				
        param: {
					partnerId: this.partnerId,
					partnerNo: this.partnerNo,
          orderClaimCount: this.form.orderClaimCount
        }
      }
      this.$axios.post(this.$action.credit_update, options).then(res => {
        if (res.code == 200) {
          this.$globalMsg.success(this.$t('message.success'))
        }else{
          this.$globalMsg.error(res.message)
        }
        this.submenuFlag = false
      })
			
		},
		getDetailData(){
      let option = {
				param:{
					partnerId: this.partnerId,
				}
      }
      this.$axios.post(this.$action.credit_pageinfo, option).then(res => {
        if (res.code == 200) {
          this.partnerName = res.data.partnerName
					this.partnerNo = res.data.partnerNo
					this.reviewObj.first = res.data.manualFirstReview
					this.reviewObj.second = res.data.manualSecondReview
          this.firstReview = res.data.manualFirstReview?res.data.manualFirstReview.status:0
					this.secondReview = res.data.manualSecondReview?res.data.manualSecondReview.status:0
					this.form.orderClaimCount = res.data.orderClaimCount
				} else {
          this.$globalMsg.error(res.message)
        }
				this.submenuFlag = false
      })
		}
  },
  mounted () {
		this.partnerId = this.$route.query.id
		// this.getDetailData()
		
  }
}
</script>

<style scoped lang="scss">
	.bluebox{
		width: 550px;
    height: 20px;
    box-sizing: border-box;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    box-shadow: none;
    font-weight: 700;
    font-style: normal;
    font-size: 16px;
    text-align: left;
    line-height: 28px;
    border-width: 0px 0px 0px 4px;
    border-style: solid;
    border-color: rgb(0, 121, 254);
    border-top: 0px;
    border-right: 0px;
    border-bottom: 0px;
	}
	#u2{
		position: relative;
    width: 550px;
    height: 20px;
    font-weight: 700;
    font-style: normal;
    font-size: 16px;
    text-align: left;
    line-height: 28px;
    border-width: 0px;
		margin-bottom: 20px;
	}
	#u2_text{
	  border-width: 0px;
    position: absolute;
    left: 10px;
    top: -4px;
    width: 530px;
    word-wrap: break-word;
	}
	#u3 {
    position: relative;
    width: 1140px;
    height: 40px;
    font-weight: 400;
    font-style: normal;
    text-align: left;
    line-height: 28px;
    border-width: 0px;
}
#u3_div {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 1140px;
    height: 40px;
    box-shadow: none;
    font-family: 微软雅黑;
    font-weight: 400;
    font-style: normal;
    text-align: left;
    line-height: 28px;
    background: inherit inherit inherit inherit inherit inherit inherit inherit inherit;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    border-radius: 0px;
}
#u3_text {
    border-width: 0px;
    position: absolute;
    left: 0px;
    top: 6px;
    width: 1120px;
    word-wrap: break-word;
}
#u5 {
    position: relative;
    width: 1140px;
    height: 40px;
    font-family: 微软雅黑;
    font-weight: 400;
    font-style: normal;
    color: rgb(153, 153, 153);
    text-align: left;
    line-height: 28px;
    border-width: 0px;
}
#u5_div {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 1140px;
    height: 40px;
    box-shadow: none;
    font-family: 微软雅黑;
    font-weight: 400;
    font-style: normal;
    color: rgb(153, 153, 153);
    text-align: left;
    line-height: 28px;
    background: inherit inherit inherit inherit inherit inherit inherit inherit inherit;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    border-radius: 0px;
}
#u5_text {
    border-width: 0px;
    position: absolute;
    left: 0px;
    top: 6px;
    width: 1120px;
    word-wrap: break-word;
}
.box_1{
	margin-bottom: 20px;
}
</style>